home *** CD-ROM | disk | FTP | other *** search
/ Aminet 7 / Aminet 7 - August 1995.iso / Aminet / docs / misc / ConcNews.lha / news / amiga.programming / comp.sys.amiga.programmer_21065_000000.msg < prev    next >
Encoding:
Internet Message Format  |  1994-11-27  |  1.8 KB

  1. Path: etek.chalmers.se!chalmers.se!sunic!mcsun!uunet!think.com!ames!sun-barr!rutgers!cbmvax!peter
  2. From: peter@cbmvax.commodore.com (Peter Cherna)
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: Re: Amiga doesn't pre-emptive multitask? (...)
  5. Message-ID: <36302@cbmvax.commodore.com>
  6. Date: 22 Oct 92 13:36:40 GMT
  7. References: <1c0b66INNam0@agate.berkeley.edu> <paulk.20wy@terapin.com> <1992Oct22.013827.24706@netcom.com> <1c5oktINNcvd@agate.berkeley.edu>
  8. Reply-To: peter@cbmvax.commodore.com (Peter Cherna)
  9. Organization: Commodore-Amiga, Inc.  West Chester, PA.
  10. Lines: 24
  11.  
  12. In article <1c5oktINNcvd@agate.berkeley.edu> pete@plutonium.CChem.Berkeley.EDU (Pete Goodeve) writes:
  13. >Just to make sure I hadn't missed it the first time, I went back to FindPort
  14. >again, and I stand by my statement that it has *no* protection.  Somebody
  15. >prove me wrong, please...
  16.  
  17. FindPort() is missing protection prior to V39.  FindPort() protects itself
  18. properly in V39 and up.  Note:  this does not protect the RESULT after
  19. the return from FindPort(), so you still need some protection if you
  20. expect to PutMsg() to that port.  That protection could be Forbid()/Permit(),
  21. or any other higher-level protocol.  Such a protocol would by any kind
  22. of guarantee that a named port won't vanish on you.  For example, if
  23. a library opens a port when it is first opened, and deletes it when it
  24. is last closed, then holding the library open is all the protocol you
  25. need to guarantee the persistence of that port from the time you FindPort()
  26. it until you're done with it.
  27.  
  28. >                                            -- Pete --
  29.  
  30.      Peter
  31. --
  32. Peter Cherna, User Interface Development Group, Commodore-Amiga, Inc.
  33. {uunet|rutgers}!cbmvax!peter    peter@cbmvax.commodore.com
  34. My opinions do not necessarily represent the opinions of my employer.
  35. "I believe it's bad luck to be superstitious."